<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        window.onload = function () {
            var str='a111111111234';
            var reg=/\d??/g;
            var regx=str.match(reg);
            console.log(regx);
        }
    </script>
</head>
<body>

</body>
</html>